using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.Receptionist.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.Receptionist.com.core.Controller;

[ApiController]
[Route("api/[controller]/[action]")]
public class System_GetRefuseUserController : ControllerBase
{
    private readonly ISystemGetRefuseUserMessage _systemGetRefuseUserMessage;

    public System_GetRefuseUserController(ISystemGetRefuseUserMessage systemGetRefuseUserMessage)
    {
        _systemGetRefuseUserMessage = systemGetRefuseUserMessage;
    }
    
    [HttpGet]
    public async Task<JRequest> GetUserMessage(string errorCode) =>
        // 修改成错误码查询 防止被滥用
        await _systemGetRefuseUserMessage.GetRegisterUserMes(errorCode);
}